const app=getApp();
var WxParse = require('../../untils/wxParse/wxParse.js')
Page({
  data: {
    mainInfo:{},
  },
  onShareAppMessage: function () {
    
  }, 
  onLoad: function (opt) {
    wx.setNavigationBarTitle({
      title: '活动图片详情',
    })
    this.initPage(opt);
  },
  initPage:function(opt){
    let _this=this;
    app.doReq(app.globalData.SERVICE.INDEX.PHOTOLISTDETAIL, {
      "id": opt.id
    },'GET', function (res) {
      console.log(res);
      var article = res.data.obj.info;
      WxParse.wxParse('article', 'html', article, _this);
      _this.setData({
        mainInfo: res.data.obj
      })
    });
  }
})